import {Component} from 'react'
import axios from "axios"

axios.defaults.baseURL="http://127.0.0.1:3001/api"

axios.interceptors.response.use((response)=>{
    return response.data
})

Component.prototype.$axios = axios
Component.prototype.$static_host = 'http://127.0.0.1:3001'

export default axios